// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'


Vue.config.productionTip = false

//引入第三方组件vant
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);
import { Lazyload } from 'vant';
Vue.use(Lazyload, {
  lazyComponent: true,
});

//import { Lazyload } from 'vant';
//Vue.use(Lazyload);
import { Notify } from 'vant';
Vue.use(Notify);
import { Toast } from 'vant';
Vue.use(Toast);
import { Icon } from 'vant';
Vue.use(Icon);
import { Dialog } from 'vant';
Vue.use(Dialog);
//下拉刷新
import { PullRefresh } from 'vant';
Vue.use(PullRefresh);
import { List } from 'vant';
Vue.use(List);

//导入mui包
import './lib/mui/css/mui.min.css'
import './lib/mui/fonts/mui.ttf'
import './lib/mui/fonts/mui-icons-extra.ttf'
import './lib/mui/css/icons-extra.css'
import './assets/css/clear.css'

//在main.js中把axios注册到中vue中
import axios from 'axios'
import VueAxios from 'vue-axios'
Vue.prototype.$axios = axios
Vue.use(VueAxios, axios)
//把api定义成全局变量
Vue.prototype.HOST = '/api'

//http封装
//
//Vue.use(VueAxios,http)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
